package com.ca.project.Server.Modules.RepairInfo.Entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

/**
 * @TableName repair_info
 */
@TableName(value = "repair_info")
@Data
public class RepairInfo implements Serializable {
    /**
     * 维修订单id
     */
    @TableId(value = "r_id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long rId;

    /**
     * 维修用户唯一标识
     */
    @TableField(value = "r_openid")
    private String rOpenid;

    /**
     * 维修电脑类型(1 为 笔记本 2 为 台式)
     */
    @TableField(value = "r_pc_type")
    private Integer rPcType;

    /**
     * 维修电脑品牌
     */
    @TableField(value = "r_pc_name")
    private String rPcName;

    /**
     * 维修原因
     */
    @TableField(value = "r_reason")
    private String rReason;

    /**
     * 维修图片的id合集
     */
    @TableField(value = "r_img_list")
    private Object rImgList;

    /**
     * 维修人员的openid
     */
    @TableField(value = "r_bm_openid")
    private String rBmOpenid;

    /**
     * 维修状态(0 为 待维修 1 为 已接单 2为 已完成 默认值为0)
     */
    @TableField(value = "r_state")
    private Integer rState;

    /**
     * 预约维修时间
     */
    @TableField(value = "r_reserve_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date rReserveTime;

    /**
     *
     */
    @TableField(value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    /**
     *
     */
    @TableField(value = "update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}